package com.wanmait.meteor.controller;

import com.wanmait.meteor.pojo.Industry;
import com.wanmait.meteor.pojo.MeetType;
import com.wanmait.meteor.service.IndustryService;
import com.wanmait.meteor.util.IgnoreToken;
import com.wanmait.meteor.util.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@IgnoreToken
@RestController
@CrossOrigin
public class industryController {
    @Resource
    private IndustryService industryService;
    //wf 查找行业列表
    @IgnoreToken
    @GetMapping("manage/selectIndustryList")
    public Result selectIndustryList(){
        List<Industry> industries=industryService.selectIndustryList();
        return Result.success(industries);
    }
}
